//------------------------------------------------------------------------------
// <copyright file="DownloadUpdatesCompletedEventArgs.cs" company="Damian Antonowicz">
//       copyright © 2010 Damian Antonowicz
// </copyright>
// <author>Damian Antonowicz</author>
// <email>poczta@damianantonowicz.pl</email>
//------------------------------------------------------------------------------

using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;

namespace DAnton.Blocks.Updater
{
    public class DownloadUpdatesCompletedEventArgs : AsyncCompletedEventArgs
    {
        private bool isUpdaterAlreadyDownloaded;

        public bool IsUpdaterAlreadyDownloaded 
        {
            get
            {
                this.RaiseExceptionIfNecessary();
                return this.isUpdaterAlreadyDownloaded;
            }
        }

        public DownloadUpdatesCompletedEventArgs(Exception exp, bool cancelled)
            : base(exp, cancelled, null)
        {
        }

        public DownloadUpdatesCompletedEventArgs(bool isUpdaterAlreadyDownloaded)
            : base(null, false, null)
        {
            this.isUpdaterAlreadyDownloaded = isUpdaterAlreadyDownloaded;
        }
    }
}
